from werkzeug.routing import BaseConverter


class RegisterConverter(BaseConverter):
	'''自定义接受正则表达式的路由转换器'''

	def __init__(self, url_map, regex):
		'''regex实在路由中填写的正则表达式'''
		super(RegisterConverter, self).__init__(url_map)
		self.regex = regex
